<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用$.ajax()方法发送jsonp请求</title>
</head>
<body>

	<!-- $.get()和$.post()方法发送请求：
		

		 -->



	<!-- 布局 -->
	<button id="btn">发送请求</button>



	<!-- js代码部分 -->
	<script src="./js/jquery-3.4.1.min.js"></script>
	<script type="text/javascript">

	
		$("#btn").on("click",function(){
		// $.get("/getTest","name=zhangsan&age=78",function(response){
		// 	console.log(response);

		// });

		$.post("/postTest",function(response){
			console.log(response);

		})





		});




	
	</script>
	
	






</body>
</html>